package com.example.WebSocketDemo.bean;

import java.util.List;

public class User {
    private int id;
    private String username;
    private String password;
    private String profilePhoto;
    private String email;
    private List<Message> messageList;
    private int tip;
    private String nickname;
    private boolean selected = false;
    private String intr;
    private String birth;
    private String gender;
    private String tele;
    private String registerDate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getProfilePhoto() {
        return profilePhoto;
    }

    public void setProfilePhoto(String profilePhoto) {
        this.profilePhoto = profilePhoto;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public List<Message> getMessageList() {
        return messageList;
    }

    public void setMessageList(List<Message> messageList) {
        this.messageList = messageList;
    }

    public int getTip() {
        return tip;
    }

    public void setTip(int tip) {
        this.tip = tip;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String getIntr() {
        return intr;
    }

    public void setIntr(String intr) {
        this.intr = intr;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getTele() {
        return tele;
    }

    public void setTele(String tele) {
        this.tele = tele;
    }

    public String getRegisterDate() {
        return registerDate;
    }



    public void setRegisterDate(String registerDate) {
        this.registerDate = registerDate;
    }

    public User() {
    }

    public User(int id, String username, String password, String profilePhoto, String email, List<Message> messageList, int tip, String nickname, boolean selected, String intr, String birth, String gender, String tele, String registerDate) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.profilePhoto = profilePhoto;
        this.email = email;
        this.messageList = messageList;
        this.tip = tip;
        this.nickname = nickname;
        this.selected = selected;
        this.intr = intr;
        this.birth = birth;
        this.gender = gender;
        this.tele = tele;
        this.registerDate = registerDate;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", profilePhoto='" + profilePhoto + '\'' +
                ", email='" + email + '\'' +
                ", messageList=" + messageList +
                ", tip=" + tip +
                ", nickname='" + nickname + '\'' +
                ", selected=" + selected +
                ", intr='" + intr + '\'' +
                ", birth='" + birth + '\'' +
                ", gender='" + gender + '\'' +
                ", tele='" + tele + '\'' +
                '}';
    }
}
